<?php
//+-----------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+-----------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+-----------------------------------------------------------
//| 
//+-----------------------------------------------------------


namespace app\common\traits;


use think\facade\View;

/**
 * 页面渲染辅助
 * @package app\common\traits
 */
trait Display
{
    public function fetch(string $template='',array $vars=[]){
        return View::fetch($template,$vars);
    }

    public function display($content='',$vars=[]){
        return View::display($content,$vars);
    }

    public function assign($name,$value){
        return View::assign($name,$value);
    }

    public function filter(callback $callback=null){
        return View::filter($callback);
    }

    public function engine(String $type=null){
        return View::engine($type);
    }
}